


capture log close
log using PSRM_Aid_FDI_Personalism_SumStats-stata.log, replace
set more off


********************************************************************************
*                                                                              * 
* Foreign Aid, FDI and the Personalization of Power in Autocracies             *
* Bernat Puertas* and Abel Escribà-Folch*+                                     *
* *Universitat Pompeu Fabra                                                    *
* +Institut Barcelona d'Estudis Internacionals                                 *
* Contact: bernat.puertas@upf.edu                                              *
*                                                                              *  
********************************************************************************

* Set the working directory

cd "~\PSRM REPLICATION MATERIALS"


use aid-fdi-personalism_NEW

* The following code produces Table A1 in the Appendix 


* Table A1

* We edit the table in LaTeX and for the "between" and "within" stats we only include the Standard Deviation

xtset leader_id year

xtsum personalism oda_constant_pc_pos_log_lag fdi_cpi_pc_pos_log_lag gdppc_log_lag gdppc_growth_lag population_log_lag oilpc_log_lag civilwar_lag leader_duration_log_lag


* Exporting the Table A1 to .doc format (better format to export it)

ssc install asdoc
asdoc xtsum personalism oda_constant_pc_pos_log_lag fdi_cpi_pc_pos_log_lag gdppc_log_lag gdppc_growth_lag population_log_lag oilpc_log_lag civilwar_lag leader_duration_log_lag, save(Table A1.doc)



log close


* The End